<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./JS/vue.js"></script>
</head>
<body>
    <div id="app"></div>
    <template id="cpn">
        <div>
            
        </div>
    </template>
    <script>
        const app = new Vue({
            el: '#app',
            data:{
                message: '你好'
            },
            methods:{
                
            },
            components: {
                cpn:{
                    template: '#cpn',
                    methods: {
                        showMessage(){
                            console.log('showMessage');
                            
                        }
                    }
                }
            }
        })
    </script>
</body>
</html>
